import axios from "axios";
import Axios, {
  InternalAxiosRequestConfig,
  AxiosResponse,
  AxiosInstance,
} from "axios";

// 创建实例
const axiosInstance = axios.create({
  baseURL: import.meta.env.NODE_ENV === "production"  ? 'http://59.140.14.2:9911/' : "haikang",
  headers: {
    'Content-Type': "application/json",
    "Knife4j-Gateway-Code": "ROOT"
  }
});


export default axiosInstance